package jw.hospital.hosp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = "jw.hospital") // 包扫描规则， 第四步骤
@EnableDiscoveryClient  // nacos 第三步骤
@EnableFeignClients(basePackages = "jw.hospital")  // 消费者，远程调用的执行者 【加上扫描模块的路径】
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
